package com.chw.shop.service.impl;

import com.alibaba.druid.support.json.JSONUtils;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.chw.shop.dao.ISpecsDao;
import com.chw.shop.entity.po.ShopSpecs;
import com.chw.shop.service.ISpecsService;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.tomcat.util.json.JSONParser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SpecsSericeImpl implements ISpecsService {
    @Autowired
    private ISpecsDao iSpecsDao;

    @Override
    public Object queryShopSpecs(Integer id) {
        QueryWrapper wrapper=new QueryWrapper();
        wrapper.eq("pid",id);
        List<ShopSpecs> list = iSpecsDao.selectList(wrapper);

        return list;
    }

    @Override
    public List<String> getName(String k, String v) {
        return iSpecsDao.getName(k,v);
    }

}
